home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: int main() vs int main(void)
- Date: 09 Feb 1996 04:37:26 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb8213726@qcd.lanl.gov>
- References: <1996Feb7.201848.18734@atlas.tntech.edu> <4fde76$flj@sam.inforamp.net>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: rmorin@inforamp.net's message of Thu, 08 Feb 96 18:13:57 GMT
-
- In article <4fde76$flj@sam.inforamp.net> rmorin@inforamp.net (Randy
- Charles Morin) writes:
- <snip>
- My understanding is that in C++, there is absolutely no difference.
- But in C,
- there is a slight difference. I think the proper example is the
- following...
-
- void f(void);
- void f(){};
-
- This two line program is the key. It compile in C++ and doesn't in C. You
- have to change the program to...
-
- void f(void);
- void f(void){};
-
- ..for it to compile in C. But, I'm not an expert on the subject. So, I'd
- confirm this by compiling the programs yourself. No other
- differences exist
- in my books.
-
- Why do people insist on posting such absolute non-sense (Now may be
- I can be arrested in the US if I used the word I felt like using
- instead.)
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-